package flc.ast.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import flc.ast.BaseAc;
import flc.ast.R;
import flc.ast.databinding.ActivityFileTransferBinding;

public class FileTransferActivity extends BaseAc<ActivityFileTransferBinding> {


    @Override
    protected int onCreate() {
        return R.layout.activity_file_transfer;
    }

    @Override
    protected void initView() {
        mDataBinding.ivFileTransferBack.setOnClickListener(v -> onBackPressed());
        mDataBinding.ivTransfer.setOnClickListener(this);
        mDataBinding.ivReceive.setOnClickListener(this);
        mDataBinding.ivFileTransferRecord.setOnClickListener(this);
    }

    @Override
    protected void onClickCallback(View v) {
        switch (v.getId()) {
            case R.id.ivTransfer://发送文件
                startActivity(SelFileActivity.class);
                break;
            case R.id.ivReceive://接收文件
                startActivity(FileScanQrActivity.class);
                break;
            case R.id.ivFileTransferRecord://传输记录
                startActivity(TransferRecordActivity.class);
                break;

        }
    }

    @Override
    protected void initData() {

    }
}